import { request, config } from 'utils'

const { api } = config
const { auditOrder } = api

export function query(params) {
  return request({
    url: auditOrder + '/auditAndDispatch',
    method: 'get',
    data: params,
  })
}

export function batchDelete(params) {
  return request({
    url: auditOrder + '/delete',
    method: 'post',
    data: params,
  })
}

export function create(params) {
  return request({
    url: auditOrder,
    method: 'post',
    data: params,
  })
}

export function remove(params) {
  return request({
    url: auditOrder,
    method: 'delete',
    data: params,
  })
}

export function update(params) {
  return request({
    url: auditAndDispatchOrder,
    method: 'put',
    data: params,
  })
}
